import {useSelector} from 'react-redux'
import store from  '../store/index'

export default  ()=>{

      let result = useSelector(()=>{
          return store.getState();
      })

    return(
        <h2>点击的次数:{result.value}</h2>
    )
}